#parse("partials/header.html") #parse("partials/sidebar.html")
<script type="text/javascript">
    jQuery(document).ready(function () {
        jQuery("#formID").submit(
            function () {
                if (jQuery("#formID").valid() == true) {
                    jQuery.blockUI();
                    var post_data = jQuery(this).serialize();
                    var form_action = jQuery(this).attr("action");
                    var form_method = jQuery(this).attr("method");
                    jQuery.ajax({
                        type: form_method,
                        url: form_action,
                        cache: false,
                        dataType: "json",
                        data: post_data,
                        success: function (data) {
                            jQuery("#notif").html(data['strNotification']);
                            jQuery.unblockUI();
                        },
                        error: function (data) {
                            jQuery.unblockUI();
                        },
                        complete: function () {

                        }
                    });
                }
                return false;
            });
        });

        function OpenPopUp(url) {
            $("#mws-form-dialog").dialog("open");
            $("#modalIframeForm").attr("src", "/admins/navigationgroup/searchrole/");
            return false;
        }
        function SetRole(RoleId, DescValue, HospitalUnitId) {
            $("#RoleId").val(RoleId);
            $("#NameValue").val(DescValue);
            $("#HospitalUnitId").val(DescValue);
            $("#mws-form-dialog").dialog("close");
            return false;
        }

</script>
<div id="mws-container" class="clearfix">
    <div class="container">
        <form method="post" action="/admins/navigationgroup/savenavigationgroup/" class="crud"
        id="formID">
        <input type="hidden" value="$IsCreate" name="IsCreate" id="IsCreate" />
        <input type="hidden" value="$sysNavigationGroup.Id" name="Id" id="Id" />
        <input type="hidden" value="$sysNavigationGroup.RoleId" name="RoleId" id="RoleId" />
        <input type="hidden" value="$sysNavigationGroup.HospitalUnitId" name="HospitalUnitId"
            id="HospitalUnitId" />
        <div class="mws-panel grid_8">
            <div class="mws-panel-header">
                <span class="mws-i-24 i-table-1">Navigation Group</span>
            </div>
            <div class="mws-panel-body">
                <div class="mws-panel-toolbar top clearfix">
                    <ul>
                    <li><a class="mws-ic-16 ic-arrow-left" href="/admins/navigationgroup" title="Accept">Back To List
                            Navigation group</a></li>
                        <li><a class="mws-ic-16 ic-add" href="/admins/navigationgroup/createnavigationgroup"
                            title="Accept">Add Navigation group</a></li>
                        
                    </ul>
                </div>
                <div id="notif">
                    $Notification
                </div>
                <div class="mws-form" action="#">
                    <div class="grid_4">
                        <div class="mws-form-inline">
                            <div class="mws-form-row">
                                <label>
                                    Group Name</label>
                                <div class="mws-form-item">
                                    <input class="mws-textinput validate[required] required" id="req" name="DescValue"
                                        type="text" value="$sysNavigationGroup.DescValue" />
                                </div>
                            </div>
                            <div class="mws-form-row">
                                <label>
                                    Role</label>
                                <div class="mws-form-item">
                                    <div class="mws-form-cols clearfix">
                                        <div class="mws-form-col-6-8 alpha">
                                            <div class="mws-form-item">
                                                <input id="NameValue" name="NameValue" value="$sysNavigationGroup.SysRole.DescValue" type="text" class="mws-textinput" readonly="readonly" />
                                            </div>
                                        </div>
                                        <div class="mws-form-col-2-8">
                                            <div class="mws-form-item">
                                                <input type="button" class="mws-button green small ButtonSearchPresentArea" addresstype="present" name="ButtonSearchPresentArea" value="search" onclick="OpenPopUp()" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="clear15">
                    </div>
                    <div class="mws-button-row">
                        <input name="btnAction" class="mws-button red" type="submit" value="Save" />
                        <input class="mws-button gray" type="reset" value="Reset" />
                    </div>
                </div>
            </div>
        </div>
        </form>
    </div>

#parse("partials/footer.html")